package main
import (
	"github.com/garyburd/redigo/redis"
	"time"
)
var pool *redis.Pool

func initPool(address string,MaxIdle,MaxActive int,IdleTimeout  time.Duration) {
	
	pool = &redis.Pool{
		MaxIdle:MaxIdle,
		MaxActive:MaxActive,
		IdleTimeout:IdleTimeout,
		Dial:func()(redis.Conn,error){
			return redis.Dial("tcp",address)
		},
	}
}